improved lua container class