added sleep function to lua API