corrected typo and now the scrip return a value indicating if everything went ok or not