removed unused parts of lua script