add convenience method for parsing IO