application loader refactor and test suite complete rewrite