added support to attach user-defined data to application