sanitize code, remove error_log debug messages
code and execution optimization with the getConnectors call