init agent script