prepare grid directory for submission