fix resort loading when using 2 file descriptor
fix relative require
fix tests for 2 file descriptors