Entity creation
strict standards fixes