updated make-resource script