set up proper checks and loading for sub node galleries, stripped consol.error calls