fix allowed methods