Add autoupdated

various bugs fixed.