added loader, defined logger