cleaning before building
using LinkedHashMap for correct order or resource names
added overwrite attribute
forgot to add permission