corrected(?) start_client and optimized stuff