Cookie stuff and log path fixed