fix spec and improve downloading