fixed pkg rev version in returning values