bugfix
add dirent.h and allow channel simulation