auto update sysyem added and minor bug fixes