remove console log, fix cookie bug