Engineering aspects of safety management