added 'file log' dict, some arg parsing