improved mesh loading