remove the dependency on resource (a Unix-only stdlib module)