finally got bagel working...