print before listen