most is working

still need split working and some bugs fixed