added type hints to get rid of on-reflection warnings