plain frame work optimize for script lua