need to fix: entity manger not initalized