some hacks to make ls work, should be enough to suggest the fix