debug c buyfund