more magik error handling