added logging but goes to console.log right now