they flew in a 727 hed acquired for next to nothing when it was put out of service by an american airline and , after ten million in refurbishments at a friends factory in costa rica , it served as his flying army headquarters .