following DRY and properly configuring accountname and key