change style detection logic; output some information to the console