add support for relative location
add test for relative location