added profile.d script func