change serialize to not call full path