[PARTIAL] added log functions