tweaking of core layout, implementation of basicchat