Clark wright implementation

fancy stram stuff