more useful functions
version of io module for testing