move apichecking for uuid into separate method