changed the fs methods to be generic to allow new methods to be added in a DRYer fashion.