renamed library script from functions to common