updated for filesystem module