bunch of bugs fixed. see issues list.