moved assets initialization to a realtie