make frame code public