add logs directory
change global variables' name
add a simple