input dirs and logs corrected