added creating action directory if it doesn't exist