updated permissions and endline formats