added port check, loading viewer configuration