bug fix: callback now uses a block parameter to access the GPS attributes