removed depth from export_code() returned object