adding in pre_stop to make the file writeable by the user