fix extending, layers