startet porting camera. Stopped because there is no way to check the metatable type