Applayer is  now singleton