improve debug/syslog handler
add functon to get token from t411 api
integrate last change from logs