removed bin, added xpath attr method