fixes, handle several errors, display message if error