initial commit converting from anvard