mostly-working bind setup