slightly refactor and test loading examples