replace resource with restaugular