Fix log bug
add automatic apps registration