move shell from inline to script