add a non args constructor + extra checks for serverURL