crab job handling function