setting iswrite flag on execute