add tests
clean up
add tests
clean up
fix relative paths calculation