replaced static variable index in ProcessHandler