bug fixes

detect board change
variable reset