fix BPT constant, closes #140
check allocations