added secure mode (old carch magic)