Fixed incorrect path for prepare
Added flags to prepare