add loading, fixes #1