added sysimage support, small refactoring, preparations for GET