added type hint to processor constructor