refactor(boolean): change directory from object to boolean