improved debugging, started on WP settings page