changed the printing of name to using stderr so it can be read immediately