spec working - need to write path to file