parsing url and initializing domain tables