fix runtime errors

preparing