remove functions and add options for miraligner