added function to retrieve a list of layers