refine api, now to now_ms