renamed var dir to base