pins replaced with defines from pindefs