Refactoring WP interface, somewhat brittle and untested at this point - use the master branch if you need stable code right now