__constuct() reworked; parse_url() need to be replaced