perhaps fixed AutoPromote. Cleaned up perm reg