modified BaseEntity to incorporate commons variables