check for execution mode