use bonescript only where necessary