improved error handling and block notification