impl metahelper;refact some auth logic for top
add package identity
update comments
clean code
add log buffer and worker to tracehelper