add retentiontime class, fix build issue on mac