add datetime to simplify usage