changed prepend order to fix source maps bug