added v0.5 of the script