add auto select server/file

add auto select server/file