a bit better support for nested gems