url parse in, needs some optimizing apparently