remove some console.log, start a directive implementation