revise tap to return instance of mesa