add slash if necessary in model constructor