add support method and for testing purpose