add relative paths

Although I closed the issue first, I think relative paths in the core is useful.