generate module menu without menu slot
make safe mode variable case insensitive
fix safeMode