incorrect checking of $pushed return code - need to compare against something