miscellaneous stuff in golang