add flying to demo and refactor bounds lookup