add a general get method