temporary fix for readdir wrap