maybe change this to console.warn just so it prints to stderr