added common library script