some mess in mlp.jl, but Adagrad seems to work now