some bugs fixed. all done. version 0