added resource manager
change lua