use config and os.path