v4

pretty much finished