main prints to console