added type and name to main request