added wait function wrapper
tune in paste area