improve save/config - check if file is empty