fixes #32, adds support for relative locations