turn this into an active bar architecture