fixed some errors / suppressed console.log