missing end-if in mod_bound, and edits to mgkmconf