adding option to chdir before starting appliction