added 'try' method to test a custom parser