refactored bounding box logic inclusion to a class, some logging