add function to get library version