changes usage of integrated and adds more log prints