added standalone version