Write cookies instead of using exec_cmd
Update submodules