converted some scripts to ruby and removed unused scripts