handling relative targets