use class main as root to get current folder