make it compilable with public API for snapshot