spatial related print and bugfix