figure out path automatically