speed up list operation; fix log dir path