add parse method and parse version