tweaked base script