moving restriction class to krenk-protocol