API for unstack