fix logger issue
add startup function