switch loading code in main feed to model layer