put init dir in a variable and used that all over