add mesh, fix bug

should upload mesh before using it
ws close