then through studying with hidden templar teachers he gained knowledge of all the ancient secrets and in learning those secrets he gained powers that connected him with the universe and all of the fabrics of the realities .