removed debugging error_log statements