mostly kotlin fixes for new frames