refactor loader, add meta data to content api