console works (not in real time)