extract command to get a resource from a bundle. closes #4