use logger instead of console.log in all places