Resource split

Fixes #445