added info display and error handling