stability issues and errorhandling