freeze_melt lua api