added better pathing, started some work on lua scripts