first working version with aws