removed debug error_log calls