refactor function names for php 500 errors, plugin still doesn't export correctly.