url can be set by constructor parameters