improve setup function for minilla