now generating private.xml ourself