ENH: updated worker and added scheduler to cli scripts
ENH: updated config to return connection if it is in the config