reslove path at beginning and change src to source