fix output positioning and some notify problems