add resoureces and rules