fix post_sample_cluster issue related to nested objects
clean up setup and old gui stuff