update model specification method and ignore build directory