added sm id to env