Tested with ajax, reverted to loading wp-config manually. Will fix later.