updated script to handle something