require working, adding relative path support

next commit will remove require support, it's just to much work for the
reward