added custom board option, fixed a bug