add timeout to ps