codegen: flesh out the vector code a bit more; not working