fix deprecation warnings; add debug info
add debug info about server port