reverted to simple script