temporary debugging stage for heterogeneous.py