validating domain existence and fixing build