removed repeated code
add BaseFrame as exported class