actually make the library work

- turns out adding tests is actually useful. returned paths are now
  valid
- need to iron out syntax for calls with custom environments