return -1 in case of failed installation