added check for key signatures