added directory initialization