added ability to put in lua c functions