removed monitor warnings and fix for getdents