use call_user_func on getUrl