added guard
changed spec to look for the path