some pin handling methods