add new API functions to mesegates