post_controller refactor and attempted s3-delete fix