changed to use out dir