fixed a shitload of bugs today.