move appInstance arrays to lib collections