improve logs, no proxy, recursive instead of while