using a single request for libraries loading instead of a request per library + some tweaks
clean