main: support both sources and source on embed params