added optional pathing for formats