fixed sh files - now they can accept multiple args; fixed local application args parsing.