now releases gpio pins correctly