added promises to `$.stdin`