move mask into route