moved console calls to background
switched to S4 class for excel reference type