create a common part for all script