using file for chmod instead of shell