code refactor (java to groovy)
added one more job mode selection option