allow multiple assets to be prepended
bugfixing and refactoring