updated for seafile 3