use relative paths internally
paths and fix a return type