now starting to work with the external entity loader.
this may break everything, thats why this commit.

WORKING VERSION