remove useless cast
add dial timeout