determine preloaded attachments dynamically