started adding more functionality to l_entity