removed extra chmod, unsure if needed for preview