introduce settings and replace resource references

this PR fixes #5