add logs and optime dir