allow log to be used pre init
minor cleanups
use stack trace resolver on iOS