fix bug with functions, update rework to 0.18.2