Fix lib scope + fix custom log fct