Adding safe_yaml config and fixing spec