make sure a newline is added before echoes