synchronization bugs fixed, added returning stderr to the client