fixed console.logs and name saving