add board[] and minor fixs