fixing grid resource, argiments before host
adding missing environment and fixing arg string