updated to use krypt base controller