adds beam lib from James Atherton