adds better view path handling