brain service main functionality complete