add beforeModel hook as LS adapter workaround