hacky, almost-working file