fixed issue with retuning promise