move host mask stuff over to new config class