code cleanup
fixes
removing resourcePool and cluster away from global config
Cleaning exceptions/errors