making paths to resources relative