Remove fs require in serialize