more cleanups
removed BCHECK code
removed pthread option