pass input object to methods and gracefully handle errors