adding first version of the shared script