enabling/disabling invitation code; closes #1