lazy login for whatcd
improve performance (did some profiling)