change index to use schedule which contains routines, rename resources to routines