first working version with snowden