added border drawing. untested but in theory i should have all the working parts now