fixed minor problem, switched to debug state
added border rework