import modules only when needed, fix bug with logger