migration to corejs
adopting node callback style