beam is now almost working