making paths work although not very nice in apps