updated error handlers with warnings so that everything gets impelemented properly.