border style, stats and log stuff

lot is still somewhat broken