added custom_data sending option in bin/aps