added basepath to resources