better interface for parameters setting
use setParam() for methods
use a single loop, and two distinct method flags
init agent before creating the task
turn mandatory input as parameter
relax expectations for DEVICEID