init classed and entities