fix bugs and add help and tool_check target