move all mock to meta/trace helper