integrating mayday for custom warnings and errors