removed sop and added logger