coding lib+exe. prepared brain for lib protocol.