remove some logging
write out the file instead of console.logging