check for writeable file for save