refactor code retriever

delete username & password in config
refactor codes