storage boxes in API and bug fix for datasets not getting assigned the right storage box