add resources and update post