passing custom attributes to the scanner