added matplot and stop backend