file extension check for saving now works, it will always save the file with '.ser' extension