updated to try some things with console.write