restricted routes wip, need to change schema