fixed clearscreen and a few small tweaks