profile script fixes