dirty bounding for optimized checks, separated files, dev mode