add method to populate staves based on URL path components.