try to make it work in the browser and update logger function
recompile