cleanup of smart stack file