fixing some plotting scripts