patch from Vladimir Dzhuvinov to add possible pin parameters