add support for nested styles