create separate directory for device I/O code