working on script to autoactivate dir