final working version!!

with console logs and other stuff..