parse types and signatures