update script logic
add Logger