adds spec and silences deprecation warning