remove executable, add bin dir, add log file for closing metafile