integrate parsing functions in library