code for creating loader tables