updated pin read commands