attach cookies to Path=/
fix errno in mg_mkdir