asagumo: fix syntax and bugs