slight bug fix and allow file style