added a couple more functions, made idea script work for different install locations