passing keys and physics on object creation