added dump() and getCurrentURL() functions