changed to use wp-load