almost fully re writed

a lot of new stuff, and i hope fixes too