modify lunchbox code for new version sdk