this simple resource controller