fixing rootpath dependency