added layer and find functions for finding layers in routers