updated base script