adding book detection and wire frame