fixed loader when not in current directory