decode task and subscription check