added shorthand parse function