set directory and packages