avoid warning
add time warning, fix minor bugs