added first functionality to infer type and grap url from src