added debug logging to resource/build_resource includes