-added seperate io handles for read and write