add url argument to constructor