remove console(s), docs and add raw type