lib: preliminary fp support