reorganize release code, new master hfss.release() function