for easy access to IO write operations through class methods i came up with this